{include file="header.html"}
<script type="text/javascript">
    $(function(){
        $('#add_time_from').datepicker({dateFormat: 'yy-mm-dd'});
        $('#add_time_to').datepicker({dateFormat: 'yy-mm-dd'});
    });
</script>
<div id="rightTop">
    <p>{$lang.wish_list}</p>
    <ul class="subnav">
        <li><span>{$lang.manage}</span></li>
    </ul>
</div>
<div class="mrightTop" style="height: 80px;">
    <div class="fontl">
        <form method="get">
                <input type="hidden" name="app" value="wish" />
                <input type="hidden" name="act" value="index" />
                <!--关键字:<input class="queryInput" type="text" name="search_name" value="{$query.search_name|escape}" />-->
                <select class="querySelect" name="state">
                    <option value="">状态</option>
                    {html_options options=$wish_state_list selected=$query.state}
                </select>
                添加时间:<input class="queryInput" type="text" value="{$query.add_time_from}" id="add_time_from" name="add_time_from" class="pick_date" />
                至:<input class="queryInput" type="text" value="{$query.add_time_to}" id="add_time_to" name="add_time_to" class="pick_date" />

                {$lang.chop_count}从:<input class="queryInput2" type="text" value="{$count_from}" name="count_from" />
                至:<input class="queryInput2" type="text" value="{$count_to}" name="count_to" class="pick_date" />
                <br/>
                国际码：
                <input class="queryInput" type="text" name="international_code" value="{$international_code}"/>
                申请人姓名：
                <input class="queryInput" type="text" name="user_name" value="{$user_name}"/>
                商品金额:<input class="queryInput" type="text" value="{$query.goods_price_from}" id="goods_price_from" name="goods_price_from"  />
                至:<input class="queryInput" type="text" value="{$query.goods_price_to}" id="goods_price_to" name="goods_price_to" />
                <input type="submit" class="formbtn" value="{$lang.query}" onclick="$('[name=act]').val('index');"/>
                <!--{if $filtered}-->
                <a class="formbtn1" href="index.php?app=wish">{$lang.cancel_query}</a>
                <!--{/if}-->
        </form>
    </div>
    <div class="fontr">
        {if $res}{include file=page.top.html}{/if}
    </div>
</div>
<div class="tdare">
    <table width="100%" cellspacing="0" class="dataTable">
        <!--{if $res}-->
        <tr class="tatr1">
            <td width="10%" class="firstCell"><span fieldname="seller_id">{$lang.user_name}</span></td>
            <td width="10%"><span fieldname="goods_name">{$lang.goods_name}</span></td>
            <td width="10%"><span fieldname="goods_spec">{$lang.goods_spec}</span></td>
            <td><span fieldname="sku">{$lang.sku}</span></td>
            <td width="5%"><span fieldname="goods_spec">{$lang.default_image}</span></td>
            <td width="5%"><span ectype="order_by" fieldname="expected_price">{$lang.expected_price}</span></td>
            <td width="5%"><span ectype="order_by" fieldname="first_paragraph">{$lang.first_paragraph}</span></td>
            <td width="5%"><span ectype="order_by" fieldname="last_paragraph">{$lang.last_paragraph}</span></td>
            <td width="8%"><span ectype="order_by" fieldname="chop_paragraph">{$lang.chop_paragraph}</span></td>
            <td width="8%"><span ectype="order_by" fieldname="chop_paragraph">{$lang.chop_count}</span></td>
            <td width="10%"><span fieldname="add_time">{$lang.add_time}</span></td>
            <td width="10%"><span fieldname="finish_time">{$lang.finish_time}</span></td>
            <td width="5%"><span ectype="order_by" fieldname="state">{$lang.state}</span></td>
            <td width="25%">{$lang.handler}</td>
        </tr>
        <!--{/if}-->
        <!--{foreach from=$res item=order}-->
        <tr class="tatr2">
            <td class="firstCell">{$order.user_name|escape}</td>
            <td>{$order.goods_name}</td>
            <td>{$order.spec_1value}{$order.spec_2}</td>
            <td>{$order.sku}</td>
            <td><img width="50px" src="{$order.spec_1}"></td>
            <td>{$order.goods_price|price}</td>
            <td>{$order.first_paragraph|price}</td>
            <td>{$order.last_paragraph|price}</td>
            <td>{$order.chop_paragraph|price}</td>
            <td>{$order.count}</td>
            <td>{$order.add_time|date:complete}</td>
            <td>{$order.finish_time|date:complete}</td>
            <td>
                <!--{if $order.state eq 0}-->{$lang.cancel}<!--{elseif $order.state eq 1}-->{$lang.ing}<!--{elseif $order.state eq 2}-->{$lang.finish}<!--{elseif $order.state eq 3} -->{$lang.invalid}<!--{else}-->{$lang.out}<!--{/if}-->
            </td>
            <td>
                <a  href="index.php?app=wish&amp;act=view_log&amp;id={$order.id}">{$lang.view_log}</a><br/>
                <a  href="index.php?app=wish&amp;act=view_pay_log&amp;id={$order.id}">{$lang.view_pay_log}</a><br/>
                <!-- {if $order.state eq 1}-->
                <!--<a  href="javascript:drop_confirm('您确定要帮助他把心愿单完成么？', 'index.php?app=wish&amp;act=amount_money&amp;wish_id={$order.id}');">完成心愿单</a>-->
                <!--{/if}-->
            </td>
        </tr>
        <!--{foreachelse}-->
        <tr class="no_data">
            <td colspan="7">{$lang.no_data}</td>
        </tr>
        <!--{/foreach}-->
    </table>
    <div id="dataFuncs">
        <div class="pageLinks">
            {if $res}{include file=page.bottom.html}{/if}
        </div>
    </div>
    <div class="clear"></div>
</div>
{include file="footer.html"}
